
export DEBUG = true
ifeq ($(DEBUG),true)
CC = g++ -std=c++14 -g
else
CC = g++ -std=c++14
endif

target:
	$(CC) test/thread_release.cxx -o bin/thread_release_test -lpthread
	$(CC) test/timerfd_buffer.cpp -o bin/timerfd_buffer_test
	$(CC) test/threadpool_test.cpp src/threadpool.cpp src/logger.cpp 3rd/*.cc -I include -I 3rd -o bin/threadpool_test -lpthread
	$(CC) test/timer_event_test.cpp src/*.cpp  3rd/*.cc -I include -I 3rd -o bin/timer_event_test -lpthread
clean:
	rm -rf bin/*
	
